home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-10-27 | 73.8 KB | 2,248 lines |
- *** 38.1 1993/10/20 18:15:56
- --- Bugs 1993/10/24 12:51:56
- ***************
- *** 70,75 ****
- --- 70,86 ----
- change only CLOCKS_PER_SEC. CLK_TCK is used in times.c. CLOCKS_PER_SEC
- is used in sleep.c.
-
- + close.c, open.c: ++nox
- + close(0); open (...); doesn't reopen 0 (stdin). (or does it now?)
- +
- + crtinit.c: ++nox
- + Some programs like uuxqt (taylors at least) understand exit code
- + EX_TEMPFAIL (75) to mean retry the command (uux job) later. Now when
- + _crtinit can't initialize it does Pterm(-1) and uuxqt thinks the job can't
- + be retried, although it probably can... so would it make sense to use
- + Pterm(EX_TEMPFAIL) instead? Or maybe make this exit code compile-time
- + configurable like __default_mode__...
- +
- getopt.c, unistd.h: ++boender
- The three externally usable variables defined in getopt.c should be
- included in <unistd.h>, where getopt() is declared too. These
- ***************
- *** 111,116 ****
- --- 122,130 ----
- [I disagree, limits.h should be strictly ANSI and is already polluted
- as it is -entropy]
-
- + localtim.c: ++nox
- + Fix localtime() etc. to get the start/end DST rules from $TZ...
- +
- main.c: ++boender
- In exit(), stdin, stdout and stderr are flushed, all other file
- descriptors are closed. I don't know what POSIX says, but System V
- ***************
- *** 132,137 ****
- --- 146,155 ----
- open() returns -4 instead of -1 on errors when __MSHORT__ is defined (but
- only in certain cases).
-
- + open.c: ++nox
- + Should open() do a TIOCSPGRP too when it Fforces the control tty?
- + I think, but i'm not 100% sure...
- +
- pgrp.c: ++entropy
- The setsid() function never really disassociates the controlling tty from
- the current process, since MiNT doesn't seem to have any such concept. It
- ***************
- *** 230,232 ****
- --- 248,254 ----
- As I don't think MiNT will ever write /etc/utmp and /etc/wtmp
- structures on booting, perhaps we should leave this be.
-
- + write.c: ++nox
- + On GEMDOS filesystems, don't try to write to a file when some other
- + process might have it open, you'll lose data. And O_APPEND doesn't help.
- + Also writes don't update timestamps on GEMDOS filesystems.
- *** 38.1 1993/10/20 18:15:56
- --- Changelog 1993/10/26 23:09:42
- ***************
- *** 4,399 ****
- Changes are listed in *reverse* order, most recent changes being
- first.
-
- ! PATCHLEVEL38::
-
- ! symlink.c:
- ! Set errno properly for readlink() on a non-link (EINVAL not EACCES).
- ! lattice/setjmp.s: ++pvt1-117
- ! Add sigsetjmp() and siglongjmp() for lattice.
- ! compiler.h: ++pvt1-117
- ! Make LCC do the right thing in limits.h.
- ! termios.h, tcattr.c:
- ! Add VLNEXT and VWERASE control chars.
- ! types.h: ++roemer@hera.rbi.informatik.uni-frankfurt.de.uni-frankfurt.de
- ! Add fd_set type and related macros.
- ! falcon.h: ++Markus_Kilbinger@ac.maus.de
- ! Change return types of VsetMask() and Dsp_Reserve() from
- ! void to short.
- ! _mulsi3.s, _umulsi3.s: ++schwab
- ! .lmul and .ulmul aren't equivalent.
- ! read.c, write.c: ++schwab
- ! Reduce drag. Also alias read to _read and write to _write
- ! when __GNUC__ && !__MSHORT__.
- ! popen.c: ++schwab
- ! Reduce drag. Also simplify code by using waitpid().
- ! open.c: ++schwab
- ! Pass as many flags as possible through to MiNT, and let it decide
- ! what to do with them. Only fall back on emulation if we can't pa a
- ! given flag.
- ! ioctl.c, stat.c: ++schwab
- ! Reduce drag.
- ! rename.c: ++schwab
- ! Try to preserve the old file under the new name as long as possible,
- ! in case an error occurs. Unfortunately we cannot determine exactly
- ! why Frename() failed, so this is not perfect (bug?). Also, reduce
- ! library drag.
- ! alarm.c: ++schwab
- ! Use Talarm() instead of alarm() to reduce drag. Also
- ! fix a bug in the code for old versions of MiNT. [I messed with
- ! this a lot to get some more error checking and also added some
- ! comments. -entropy]
- ! wait.h: ++schwab@ls5.informatik.uni-dortmund.de
- ! Make the wait prototype indirection more robust. Also fix the
- ! definition of WIFSIGNALED().
- ! wait3.c:
- ! Remove bogus usage of non-existent rusage value added in PL37.
- ! falcon.h: ++pvt1-117
- ! Inline traps for Lattice.
- ! wcmb.c: ++pvt1-117
- ! Use _wnull from wnull.c instead of a local variable.
- ! wcscat.c, wcscmp.c, wcscpy.c, wcslen.c, wnull.c: ++pvt1-117
- ! NEW files for ISO wide char support.
- ! stdlib.h: ++pvt1-117@nada.kth.se
- ! Add prototypes for new ISO widechar functions.
- !
- ! PATCHLEVEL37::
- !
- ! bzero.cpp, mincl:
- ! Break bzero and memset into separate .o's (reduce drag).
- ! gethostn.c: ++sjg@phlem.ph.kcl.ac.uk, ++entropy
- ! Look in /etc/hostname instead of /local/hostname, and look in the
- ! file before the environment.
- ! lattice/mc3.prj, lattice/mcnb3.prj, lattice/mcr3.prj,
- ! lattice/mcrnb3.prj: ++pvt1-117
- ! Remove long mul/div with 030 code.
- ! string.h, strcmp.c: ++pvt1-117
- ! Allow use of builtin string functions.
- ! lattice/bcopy.s, lattice/crt0.s, lattice/inc.i, lattice/linea.s,
- ! lattice/setjmp.s, lattice/vfork.s: ++pvt1-117
- ! If we're lucky, they might decide to keep us as pets.
- ! file.h:
- ! Add FREAD and FWRITE macros for TIOCFLUSH flushing modes (not yet
- ! implemented in MiNT).
- ! unistd.h:
- ! Add tcgetpgrp() and tcsetpgrp() protos.
- ! ioctl.h:
- ! Changes to account for definitions in common with termios.h,
- ! also add _RTSCTS flag definition.
- ! termios.h, cfspeed.c, tcattr.c, tcbreak.c, tcdrain.c,
- ! tcflow.c, tcflush.c, tcpgrp.c:
- ! NEW files, partially implementing the POSIX termios functions.
- ! (UNTESTED).
- ! wait.h:
- ! Add WSTOPSIG() macro (POSIX).
- ! utime.c:
- ! Add a kludge so that we pretend the utime() worked for directories.
- ! mkdir.c, stat.h:
- ! Mode argument is now mode_t instead of unsigned (POSIX).
- ! mkfifo.c, stat.h:
- ! NEW file providing a fake mkfifo(), and a prototype for it.
- ! mknod.c:
- ! Provide at least a little functionality in mknod().
- ! resource.h, getrusag.c, wait3.c, wait.c:
- ! Add BSD-compatible struct rusage members with 0 values for
- ! minimal compatibility.
- ! Use Pwaitpid() instead of Pwait3() for wait() and wait3()
- ! (as requested in MiNT's dosmem.c).
- ! errno.h:
- ! Added EOPNOTSUPP as (temporary) alias for EINVAL.
- ! Added ECHILD as alias for ENOENT (POSIX).
- ! lattice/*.prj: ++pvt1-117
- ! NEW files: 48 new project files for Lattice. Yow.
- ! doprnt.c, fprintf.c, printf.c, sprintf.c,
- ! vfprintf.c, vfprintf.c, lib.h: ++schwab
- ! Change the interface of _doprnt to also pass a putchar function
- ! similar to _scanf. This allows use of sprintf in a program which
- ! doesn't use stdio and it simplifies the implementation of sprintf a
- ! bit.
- ! fscanf.c, scanf.c, sscanf.c, lib.h: ++schwab
- ! The implementation of sscanf had a bug: the ungetc function would
- ! write into the scanned string passed to sscanf. This is a Bad Thing,
- ! since the string could be in readonly memory. Also changed the
- ! interface a bit so that there is less need for casts. Strictly
- ! speaking, the old way of casting the function pointers can result in
- ! undefined behaviour.
- ! getdtabl.c:
- ! Use _SC_OPEN_MAX instead of magic number 2.
- ! lseek.c: ++schwab@ls5.informatik.uni-dortmund.de
- ! Make lseek() and tell() always return -1 on errors. Make lseek()
- ! work better with unseekable devices. Don't modify errno
- ! when no error has occurred. General cleanup.
- ! lattice/osbind.s, lattice/lcsnb.prj, lattice/lcnb.prj: ++pvt1-117
- ! DELETED files.
- ! nlist.c, select.c, sync.c, truncate.c: ++pvt1-117
- ! Add some typecasts to keep Lattice happy.
- ! mintbind.h: ++pvt1-117@nada.kth.se
- ! Add some casts in the Lattice C inlines.
- ! frexp.cpp: ++Cristof_Stadler@s2.maus.de
- ! Bug fix: add a missing @.
- ! read.c:
- ! Add the beginnings of some code to make read() POSIX compliant.
- ! It turns out that this will require kernel changes so this
- ! code is currently inactive.
- ! lockf.c:
- ! Fix so flock() and lockf() block when appropriate.
- ! dirent.c:
- ! Bug fix: rewinddir() wasn't resetting the directory offset to 0.
- ! crtinit.c, ctime.c, doprnt.c, findfile.c, getpass.c,
- ! localtim.c, strftime.c, strncat.c, unx2dos.c: ++pvt1-117@nada.kth.se
- ! Removed some dead assignments and increments.
- ! stdlib.h:
- ! Added NULL (POSIX).
- ! dup.c:
- ! Clear the close-on-exec flag of the duped handle for both dup()
- ! and dup2().
- ! open.c:
- ! For O_TRUNC mode, try to use FTRUNCATE. Also, clear the
- ! close-on-exec bit of the opened file.
- !
- ! PATCHLEVEL36::
- !
- ! mincl:
- ! Added target for nlist.o.
- ! mincl, sozobon/makefile, lattice/mincl.lcc, purec/mintlib.prj: ++entropy
- ! Added targets for truncate.o, wcmb.o, printf.o, vfprintf.o,
- ! vprintf.o.
- ! truncate.c, types.h: ++schwab
- ! NEW file, implementation of truncate()/ftruncate(). Protos in
- ! types.h.
- ! getwd.c: ++schwab
- ! Make getwd() return an error message in the buffer on failure.
- ! _addsubs.cpp: ++nox
- ! Correct an inverted branch.
- ! open.c: ++nox@jelal.north.de, ++entropy
- ! Fix so that when we use Fcreate() we then Fclose() and Fopen() the
- ! file, so we get sharing modes correct.
- ! utime.c: ++schwab
- ! utime(NULL) uses time() to convert the current time to Unix format
- ! and immediately converts it back to GEMDOS format. Instead it should
- ! use the GEMDOS format directly.
- ! stime() must be changed because Tset{date,time} can now return a
- ! real error number. This depends on Tset{date,time} returning -1 if
- ! args are bad, which is true for all TOS versions, i think.
- ! ttyname.c: ++schwab
- ! ttyname() should not return names starting with "u:" when _rootdir is
- ! 'U', to be consistent with rest of library. find_ino now gets the
- ! dir name in gemdos format and it calls dos2unx on it. ttyname.c
- ! unnecessarily depends on dirent.c, we know that Dreaddir works. We
- ! can also avoid the hairy fstat(), since we know that Fcntl(FSTAT)
- ! works.
- ! signal.c: ++schwab
- ! Pass through additional signal handler parameters via _trampoline().
- ! rename.c: ++rwilhelm@physik.tu-muenchen.de
- ! Eliminate a useless strcmp().
- ! main.c: ++schwab
- ! When converting a path variable from the environment, we can conserve
- ! memory by using the fact that _path_unx2dos enlarges the path by at
- ! most two times the number of elements. On the other hand, if there is
- ! no PCONVERT env var, the provided space was too small.
- ! isatty.c: ++schwab
- ! Removes the dependency of isatty() on ttyname().
- ! spawn.c: ++schwab
- ! Cleaned up the script emulation code, and changed it in that only
- ! files starting with "#!" are interpretable (as Unix does). The
- ! first 1024 bytes of the file are examined when looking for
- ! interpreter and arguments. A small bug is also corrected: errno
- ! should never be changed when there is no error.
- ! falcon.h: ++Markus_Kilbinger@ac.maus.de
- ! Add two omitted backslashes to fix new trap definitions.
- ! chmod.c: ++schwab@ls5.informatik.uni-dortmund.de
- ! chmod() unnecessarily calls stat() to check if the file is a
- ! directory; this information is already available through Fattrib().
- ! nlist.c, nlist.h: ++shenson@nyx.cs.du.edu
- ! NEW files nlist.c, nlist.h. A version of nlist() for mntlib/toslib.
- ! Works OK with my binary config program but your milage may vary.
- ! wcmb.c, stdlib.h: ++pvt1-117@nada.kth.se
- ! NEW file wcmb.c for ANSI wide char functions.
- ! waitpid.c: ++Robert.Wilhelm@Physik.TU-Muenchen.DE
- ! Add a forgotten patch for non-GCC compilers.
- ! ctype.h: ++dsb@cs.duke.edu
- ! The toint() macro in ctype.h was translating hex digits wrong.
- ! --begin jrb changes--
- ! math-68881.h: ++jrb
- ! -- Put extern "C" around file when __cplusplus
- ! -- Make hypot use internal version of sqrt (because signature
- ! clash in libg++:xfix )
- ! -- Define internal version (_sqrt) of sqrt.
- ! osbind.h: ++Robert.Wilhelm@Physik.TU-Muenchen.DE
- ! Changed addw #n,sp to lea n(s),sp which is 4 cycles shorter.
- ! fprintf.c: ++jrb
- ! Break out vfprintf, printf and vprintf into their own .o's. That
- ! way the user can replace any of them.
- ! printf.c, vfprintf.c, vprintf.c:: ++jrb
- ! NEW files.
- ! mincl: ++jrb
- ! Add targets for above.
- ! gnulib2.c: Steven Ourada (sourada@iastate.edu)
- ! #define WORD_BIG_ENDIAN for long long.
- ! --end jrb changes--
- !
- ! PATCHLEVEL35::
- !
- ! unx2dos.c: ++schwab
- ! _unx2dos("/dev/.") -> ".:" -> file not found. This patch isn't
- ! optimal, because it only works for the first 26 drives, but better
- ! than before. (Who has more than 26 drives anyway? :-)
- ! wait.c, waitpid.c, wait.h: ++Robert.Wilhelm@Physik.TU-Muenchen.DE
- ! Accept both POSIX and BSD style parameters. [I'm not certain these
- ! patches really leave us with a POSIX-compliant wait*() suite, but
- ! I'll leave it be for now -entropy]
- ! Makefile: ++Bjarne_Pohlers
- ! Fix 020 targets to use 'make install020', and fix all targets to
- ! do 'make clean' only when necessary.
- ! doprnt.c, scanf.c: ++Bjarne_Pohlers@ms2.maus.de
- ! Add support for printing/scanning long longs.
- ! div.c: ++pvt1-117
- ! Add div functions for compilers other than GCC.
- ! bsearch.c: ++dsb
- ! Fix bug reported by Thorsten Roskowetz: the order arguments to
- ! bsearch()'s comparison function was reversed.
- ! sozobon/makefile, sozobon/readme: ++dsb
- ! Updated to reflect recent changes in the library.
- ! thread.c: ++dsb
- ! Fix a strange declaration (extern static?!?).
- ! sozobon/linea.s, sozobon/makefile: ++dsb@cs.duke.edu
- ! Fix some HSC linker problems by punting alglobal.o.
- ! ioctl.h: ++Jan-Hinrich_Fessel@un.maus.ruhr.de (Jan-Hinrich Fessel)
- ! Make it possible to include both ioctl.h and filesys.h.
- ! pgrp.c: ++schwab
- ! Correctly check the MiNT version in _bsd_getpgrp().
- ! clock.c, doprnt.c, main.c, thread.c, uname.c: ++pvt1-117
- ! Changes to keep Lattice C from generating annoying warnings, and
- ! other miscellaneous cleanups. [Once again I've modified these
- ! patches in various ways, so if something's broken it's my fault
- ! -entropy].
- ! math.h, process.h, support.h, unistd.h, exec.c, execp.c, findfile.c,
- ! scanf.c, spawn.c, spawnve.c, spawnvp.c, statfs.c, textio.c: ++schwab
- ! Add 'const' to declarations where appropriate.
- ! malloc.c: ++schwab
- ! Make malloc() round all memory requests to the page size to be able
- ! to use all the available memory.
- ! setjmp.cpp, setjmp.h: ++schwab
- ! Some cleanup; one element of jmp_buf[] can be saved by using the
- ! fact that signal 0 cannot be masked; why was the type char*[] insead
- ! of long[]?
- ! osbind.cpp: ++schwab
- ! Add some missing functions added; code cleanup.
- ! select.c: ++schwab@ls5.informatik.uni-dortmund.de
- ! Fix select() to deal with timeouts of more than 65.535 seconds. This
- ! is needed for emacs 19.
- ! statfs.c: ++schwab
- ! In statfs(): before passing to Dcntl, the path must be passed
- ! through _unx2dos, and it should be declared const.
- ! sysconf.c: ++schwab
- ! Update the value returned for _PC_LAST.
- ! fopen.c: ++schwab
- ! Make fopen() use 0666 as the default file mask (use umask() if you
- ! want something else); make mkdir() respect the umask setting.
- ! mktemp.c: ++schwab
- ! mktemp() can generate a name more than once; the length of the
- ! pattern should not be changed (emacs depends on it).
- ! lattice/crt0.s: ++pvt1-117
- ! Add some conditional stuff depending on program type.
- ! utime.c: ++shenson@nyx.cs.du.edu
- ! Pass through a NULL tset argument unchanged to the filesystem
- ! so that it can determine permissions correctly.
- ! falcon.h: ++hyc@hanauma.Jpl.Nasa.Gov, ++Markus_Kilbinger@ac.maus.de
- ! Change several erroneous macros to correctly cast return to short.
- ! lattice/*: ++pvt1-117
- ! Strip all carriage returns from Lattice C files.
- ! spawn.c: ++Ole_Arndt
- ! Add script interpretation (#!).
- ! sync.c, support.h: ++Ole_Arndt
- ! NEW file, sync() and fsync() (for Minixfs only). Proto in support.h.
- ! sigactio.c: ++Ole_Arndt
- ! Use __NSIG instead of NSIG, may as well be POSIX-clean.
- ! errno.h: ++Ole_Arndt
- ! Add errors ENOTDIR and ELOOP.
- ! signal.h: ++Ole_Arndt@f.maus.de (Ole Arndt)
- ! Fix definition of _SIGSET_MAX_INDEX to correct several bugs
- ! in the POSIX signal mask functions.
- ! stdio.h:
- ! Add vsscanf() and _getbuf() protos (yech).
- ! dirent.h:
- ! Add alphasort() proto (excluded by _POSIX_SOURCE).
- ! utmp.c, wtmp.c, utmp.h:
- ! Rename write_utmp() to _write_utmp(). Rename write_wtmp() to
- ! _write_wtmp(). Add protos (and other cleanups) to utmp.h.
- ! atof.c, fdopen.c, fputs.c:
- ! Move 'register' to beginning of declarations (shuts up gcc -Wall).
- ! fwrite.c: ++michal
- ! With unbuffered IO fwrite miscounts number of characters written.
- ! findfile.c: ++michal
- ! Try to accomodate tos style paths PATH=e:\bin,c:\bin,...
- ! unistd.h: ++jrb
- ! Take out setlinebuf, doesn't really belong here.
- ! ffs.c: ++NTOMCZAK@vm.ucs.UAlberta.CA (Michal Jaegermann)
- ! An even faster algorithm. Yow! Are we optimized yet?
- ! support.h:
- ! Added _exit() and gethostname() protos. Removed write_utmp() and
- ! write_wtmp() protos.
- ! lib.h, crtinit.c:
- ! Moved prototypes from crtinit.c to lib.h, and added more to lib.h.
- ! abort.c, main.c, lib.h:
- ! Make abort() close file handles in exactly the same manner
- ! as exit().
- ! sigactio.c, signal.h: ++nox@jelal.north.de, ++Oskar, ++entropy
- ! Fix type of sa_mask in struct sigaction (sigset_t, not long).
- ! Clean up dirty tricks in sigaction() (UNTESTED).
- ! falcon.h: ++Markus_Kilbinger@ac.maus.de, ++entropy
- ! Add missing traps.
- ! unistd.h, support.h:
- ! Cleaned unistd.h for easier reading. Moved back the link(),
- ! symlink(), and readlink() protos from support.h (sorry if I seem
- ! really indecisive on where some of these protos belong).
- ! doprnt.c, getdtabl.c, gethostn.c, mknod.c, nice.c, open.c, putenv.c,
- ! symlink.c, utime.c:
- ! Include appropriate headers for protos (and fixed mknod() proto).
- ! sys/statfs.h:
- ! Add statfs() proto.
- ! sys/errno.h, sys/ioctl.h, sys/resource.h, sys/signal.h, sys/wait.h:
- ! Fix multiple-include protection to hopefully prevent possible
- ! infinite include loops (see Bugs file).
- ! getpw.c, pwd.h: ++Jan-Hinrich_Fessel@un.maus.de (Oskar)
- ! Use uid_t (_UID_T) for getpwuid() instead of int (POSIX).
- ! lattice/inc.i: ++pvt1-117@nada.kth.se
- ! Fix a typo.
- !
- ! PATCHLEVEL34::
- !
- ! ffs.c: ++frog
- ! Much faster algorithm.
- ! _fixsfsi.cpp, _fltsisf.cpp, frexp.cpp, modf.cpp,
- ! Makefile: ++dc4i@br0.hrz.th-darmstadt.de (Stefan Steyer)
- ! Bug fixes for SFP004 coprocessor code. Add sfp004 targets.
- ! doprnt.c: ++schwab@ls5.informatik.uni-dortmund.de (Andreas Schwab)
- ! The decimal precision in a printf format does not include the sign or
- ! hex prefix, e.g. printf ("%-2.5d", -18) should print "-00018".
- ! select.c, time.h: ++Frank_Baumgart@pb.maus.de, ++entropy
- ! Get struct timeval from time.h, eliminate local definition.
- ! Add prototype of select() to time.h (is there a better place?)
- ! ctype.h, grp.h, dirent.h, stddef.h, string.h:
- ! Cleaned up for POSIX.
- ! wait.h, pwd.h:
- ! Cleaned up for POSIX (need more work).
- ! compiler.h, limits.h, stdio.h:
- ! Set stream limits for POSIX.
- ! locale.h:
- ! Define NULL if not already defined (POSIX).
- ! limits.h:
- ! Raise value of _POSIX_NGROUPS_MAX from 0 to arbitrary value of
- ! 512 now that we have a decent getgroups().
- ! fcntl.c, fcntl.h, errno.h:
- ! Add definition of F_SETLKW to fcntl.h. Add ELOCKED to errno.h.
- ! If Fcntl() gets ELOCKED, return EACCES instead (POSIX).
- ! unistd.h, stat.h, fcntl.h:
- ! Moved many prototypes to the correct headers.
- ! sigactio.c, signal.h:
- ! Fix some violations of POSIX namespace.
- ! stab.h, stab.def, Copyright:
- ! Symbol table definition files MOVED from gnu/ subdirectory to main
- ! include file directory. Copyright message for these files added to
- ! Copyright file.
- ! OChangelog, Changelog:
- ! "Changes" file renamed to OChangelog. New file Changelog created.
- !
- --- 4,317 ----
- Changes are listed in *reverse* order, most recent changes being
- first.
-
- ! PATCHLEVEL39::
-
- ! ***** include/PatchLev.h
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 18:47:34; author: entropy; state: Exp; lines: +1 -1
- ! *** empty log message ***
- ! =============================================================================
- ! ***** include/errno.h
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 16:21:30; author: entropy; state: Exp; lines: +1 -0
- ! Add ENOTEMPTY as alias for EEXIST (POSIX).
- ! =============================================================================
- ! ***** include/limits.h
- ! ----------------------------
- ! revision 38.3
- ! date: 1993/10/23 18:44:56; author: entropy; state: Exp; lines: +17 -18
- ! Raised some arbitrary limits (or changed to actual limit, as in the case
- ! of _POSIX_OPEN_MAX). Rearranged things a bit for consistency.
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/23 18:28:52; author: entropy; state: Exp; lines: +4 -0
- ! Set _POSIX_NGROUPS_MAX to 0 when not __MINT__.
- ! Thanks to ntomczak@vm.ucs.ualberta.ca for the bug report.
- ! =============================================================================
- ! ***** include/time.h
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/25 10:00:30; author: entropy; state: Exp; lines: +7 -2
- ! Update select() prototype to use fd_set * for arguments, and
- ! make some stuff !_POSIX_SOURCE.
- ! =============================================================================
- ! ***** include/types.h
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/25 09:59:28; author: entropy; state: Exp; lines: +4 -1
- ! Allow fd_set definition to be gotten from time.h too.
- ! =============================================================================
- ! ***** include/wait.h
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/24 18:47:48; author: nox; state: Exp; lines: +1 -1
- ! Some older versions of GCC trip over the new wait macros...so
- ! it's better not to use them for now.
- ! =============================================================================
- ! ***** Bugs
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/24 18:18:10; author: nox; state: Exp; lines: +22 -0
- ! Added some new entries.
- ! =============================================================================
- ! ***** Changelog
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/25 19:10:44; author: entropy; state: Exp; lines: +1 -392
- ! New Changelog file.
- ! =============================================================================
- ! ***** Files
- ! ----------------------------
- ! revision 38.5
- ! date: 1993/10/22 21:40:48; author: entropy; state: Exp; lines: +19 -19
- ! Add Version and MKLOG.
- ! ----------------------------
- ! revision 38.4
- ! date: 1993/10/21 16:58:28; author: entropy; state: Exp; lines: +9 -8
- ! Add putpwent.c to the Files list (it was missing).
- ! ----------------------------
- ! revision 38.3
- ! date: 1993/10/21 10:58:32; author: entropy; state: Exp; lines: +18 -18
- ! Add Makefile.adm.
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 10:34:24; author: entropy; state: Exp; lines: +59 -94
- ! Rearranged for automation.
- ! =============================================================================
- ! ***** MKLOG
- ! ----------------------------
- ! revision 38.3
- ! date: 1993/10/22 02:37:36; author: entropy; state: Exp; lines: +1 -1
- ! Add DIRECTORY_NAME tag to be post-processed into the source directory
- ! name of the changed file.
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 18:39:50; author: entropy; state: Exp;
- ! NEW file, to automatically generate change logs from RCS.
- ! =============================================================================
- ! ***** Makefile.adm
- ! ----------------------------
- ! revision 38.5
- ! date: 1993/10/25 19:09:04; author: entropy; state: Exp; lines: +26 -0
- ! Add 'distrib' target.
- ! ----------------------------
- ! revision 38.4
- ! date: 1993/10/22 02:34:56; author: entropy; state: Exp; lines: +20 -0
- ! Add target 'changelogs' to assist in automatic generation of changelog
- ! files at release time.
- ! ----------------------------
- ! revision 38.3
- ! date: 1993/10/21 17:13:20; author: entropy; state: Exp; lines: +26 -2
- ! Add 'checkfiles' target to look for filenames missing from Files.
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 10:41:48; author: entropy; state: Exp;
- ! NEW file.
- ! =============================================================================
- ! ***** OChangelog
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/24 17:06:08; author: entropy; state: Exp; lines: +393 -0
- ! Added previous contents of Changelog.
- ! =============================================================================
- ! ***** PatchLev.h
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 18:45:58; author: entropy; state: Exp; lines: +1 -1
- ! *** empty log message ***
- ! =============================================================================
- ! ***** Version
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/22 02:31:34; author: entropy; state: Exp;
- ! NEW file containing version number for automatic generation of other
- ! files.
- ! =============================================================================
- ! ***** crtinit.c
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 22:15:54; author: pvt1-117; state: Exp; lines: +1 -7
- ! Eliminate useless function setup_handlers().
- ! =============================================================================
- ! ***** dup.c
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/24 16:58:58; author: entropy; state: Exp; lines: +6 -0
- ! Set the controlling terminal when appropriate.
- ! =============================================================================
- ! ***** main.c
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/24 12:40:10; author: nox; state: Exp; lines: +1 -1
- ! Pty readers get double ^Ms when the writer doesn't have binmode set.
- ! I think we can just leave the ^M conversion to the tty itself
- ! (that's what CRMOD is for), at least under MiNT.
- ! =============================================================================
- ! ***** open.c
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/24 16:55:46; author: entropy; state: Exp; lines: +23 -5
- ! Allow open() to set the controlling terminal when appropriate.
- ! Thanks to nox@jelal.north.de for the bug report.
- ! =============================================================================
- ! ***** read.c
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/22 21:00:42; author: entropy; state: Exp; lines: +5 -4
- ! Fix some bugs with _read() on console under TOS:
- ! Formerly we appended a '\n' to every read, and incremented the byte count
- ! by one...this could cause a read to write past the end of the input
- ! buffer, and also messed up unbuffered tty input horribly. So now
- ! we just do CRMOD translation on the last character read, changing the
- ! '\r' to '\n' in place. (Thanks to sourada@iastate.edu for the bug report.)
- ! Also compare against __tchars.t_eofc instead of hardcoded '4', for
- ! consistency.
- ! =============================================================================
- ! ***** rename.c
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 17:17:08; author: entropy; state: Exp; lines: +17 -5
- ! Don't allow a file to be renamed to itself (on filesystems where we
- ! can tell if two files are the same) so that files aren't accidentally
- ! deleted.
- ! =============================================================================
- ! ***** select.c
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/25 09:58:38; author: entropy; state: Exp; lines: +3 -2
- ! Use fd_set * instead of long * for aguments. Thanks roemer.
- ! =============================================================================
- ! ***** wait.c
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/24 18:51:40; author: nox; state: Exp; lines: +1 -1
- ! See wait.h.
- ! =============================================================================
- ! ***** waitpid.c
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/24 18:52:00; author: nox; state: Exp; lines: +1 -1
- ! See wait.h.
- ! =============================================================================
- ! ***** lattice/mc.prj
- ! ----------------------------
- ! revision 38.3
- ! date: 1993/10/22 02:12:02; author: pvt1-117; state: Exp; lines: +1 -0
- ! *** empty log message ***
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 22:19:54; author: pvt1-117; state: Exp; lines: +7 -0
- ! *** empty log message ***
- ! =============================================================================
- ! ***** lattice/mc3.prj
- ! ----------------------------
- ! revision 38.3
- ! date: 1993/10/22 02:12:02; author: pvt1-117; state: Exp; lines: +1 -0
- ! *** empty log message ***
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 22:19:54; author: pvt1-117; state: Exp; lines: +7 -0
- ! *** empty log message ***
- ! =============================================================================
- ! ***** lattice/mcnb.prj
- ! ----------------------------
- ! revision 38.3
- ! date: 1993/10/22 02:12:02; author: pvt1-117; state: Exp; lines: +1 -0
- ! *** empty log message ***
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 22:19:54; author: pvt1-117; state: Exp; lines: +7 -0
- ! *** empty log message ***
- ! =============================================================================
- ! ***** lattice/mcnb3.prj
- ! ----------------------------
- ! revision 38.3
- ! date: 1993/10/22 02:12:02; author: pvt1-117; state: Exp; lines: +1 -0
- ! *** empty log message ***
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 22:19:54; author: pvt1-117; state: Exp; lines: +7 -0
- ! *** empty log message ***
- ! =============================================================================
- ! ***** lattice/mcr.prj
- ! ----------------------------
- ! revision 38.3
- ! date: 1993/10/22 02:12:02; author: pvt1-117; state: Exp; lines: +1 -0
- ! *** empty log message ***
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 22:19:54; author: pvt1-117; state: Exp; lines: +7 -0
- ! *** empty log message ***
- ! =============================================================================
- ! ***** lattice/mcr3.prj
- ! ----------------------------
- ! revision 38.3
- ! date: 1993/10/22 02:12:02; author: pvt1-117; state: Exp; lines: +1 -0
- ! *** empty log message ***
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 22:19:54; author: pvt1-117; state: Exp; lines: +7 -0
- ! *** empty log message ***
- ! =============================================================================
- ! ***** lattice/mcrnb.prj
- ! ----------------------------
- ! revision 38.3
- ! date: 1993/10/22 02:12:02; author: pvt1-117; state: Exp; lines: +1 -0
- ! *** empty log message ***
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 22:19:54; author: pvt1-117; state: Exp; lines: +7 -0
- ! *** empty log message ***
- ! =============================================================================
- ! ***** lattice/mcrnb3.prj
- ! ----------------------------
- ! revision 38.3
- ! date: 1993/10/22 02:12:02; author: pvt1-117; state: Exp; lines: +1 -0
- ! *** empty log message ***
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 22:19:54; author: pvt1-117; state: Exp; lines: +7 -0
- ! *** empty log message ***
- ! =============================================================================
- ! ***** lattice/mcs.prj
- ! ----------------------------
- ! revision 38.3
- ! date: 1993/10/22 02:12:02; author: pvt1-117; state: Exp; lines: +1 -0
- ! *** empty log message ***
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 22:19:54; author: pvt1-117; state: Exp; lines: +7 -0
- ! *** empty log message ***
- ! =============================================================================
- ! ***** lattice/mcsnb.prj
- ! ----------------------------
- ! revision 38.3
- ! date: 1993/10/22 02:12:02; author: pvt1-117; state: Exp; lines: +1 -0
- ! *** empty log message ***
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 22:19:54; author: pvt1-117; state: Exp; lines: +7 -0
- ! *** empty log message ***
- ! =============================================================================
- ! ***** lattice/mcsr.prj
- ! ----------------------------
- ! revision 38.3
- ! date: 1993/10/22 02:12:02; author: pvt1-117; state: Exp; lines: +1 -0
- ! *** empty log message ***
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 22:19:54; author: pvt1-117; state: Exp; lines: +7 -0
- ! *** empty log message ***
- ! =============================================================================
- ! ***** lattice/mcsrnb.prj
- ! ----------------------------
- ! revision 38.3
- ! date: 1993/10/22 02:12:02; author: pvt1-117; state: Exp; lines: +1 -0
- ! *** empty log message ***
- ! ----------------------------
- ! revision 38.2
- ! date: 1993/10/21 22:19:54; author: pvt1-117; state: Exp; lines: +7 -0
- ! *** empty log message ***
- ! =============================================================================
- *** 38.1 1993/10/20 18:15:56
- --- Files 1993/10/22 21:40:40
- ***************
- *** 1,97 ****
- - Common files:
-
- ! atof.c fputs.c lseek.c strcoll.c
- ! fread.c ltoa.c strcpy.c
- ! atol.c frexp.cpp malloc.c strcspn.c
- ! _addsubd.cpp bblink.c frwbin.c memccpy.c strdup.c
- ! _addsubs.cpp bcmp.c fseek.c memchr.c strerror.c
- ! _cmpdf2.cpp bcopy.cpp fsetpos.c memcmp.c strftime.c
- ! _cmpsf2.cpp binmode.c ftw.c mktemp.c stricmp.c
- ! _divdf3.cpp bsearch.c fungetc.c modf.cpp strlen.c
- ! _divmods.s bzero.cpp fwrite.c nlist.c strlwr.c
- ! _divsf3.cpp calloc.c gbl-ctors.h obstack.c strncat.c
- ! _extends.cpp chdir.c getbuf.c perror.c strncmp.c
- ! _fixdfsi.cpp chmod.c getenv.c pgrp.c strncpy.c
- ! ctermid.c getlogin.c printf.c
- ! _fixsfsi.cpp ctime.c getopt.c psignal.c strnicmp.c
- ! _fltsi.cpp ctype.c getpass.c putenv.c strpbrk.c
- ! _fltsisf.cpp cuserid.c getpid.c qsort.c strrchr.c
- ! _fxunsd.cpp defmode.c getpw.c raise.c strrev.c
- ! _isnan.s difftime.c gets.c rand.c strspn.c
- ! _muldf3.cpp div.c getuid.c random.c strstr.c
- ! _mulsf3.cpp div.cpp getw.c realloc.c strtok.c
- ! _mulsi3.s doprnt.c gmon.c regexp.c strtol.c
- ! _negdf2.s eprintf.c gnulib2.c regsup.c strtoul.c
- ! strupr.c
- ! _negsf2.s errbase.h grp.c sbrk.c system.c
- ! _normdf.cpp fclose.c setbuf.c sysvar.c
- ! _normsf.cpp fdopen.c ic.c setjmp.cpp textio.c
- ! _truncdf.cpp fflush.c ig.c setlocal.c time.c
- ! _udivmod.s ffs.c il.c setvbuf.c timeoday.c
- ! _umulsi3.s fgetc.c ip.c sgtty.c tmpfile.c
- ! a64l.c fgets.c tmpnam.c
- ! abort.c filbuf.c iw.c siglist.c toxxx.c
- ! abs.c findfile.c ldexp.cpp sprintf.c utime.c
- ! access.c flonum.h lib.h stksiz.c vfprintf.c
- ! alglobal.c fopen.c libgcc1.c strcat.c vprintf.c
- ! libgcc2.c wcmb.c
- ! alloca.cpp fprintf.c linea.c strchr.c wcscat.c
- ! alphasor.c fputc.c localtim.c strcmp.c wcscmp.c
- ! longlong.h wcscpy.c
- ! wcslen.c
- ! wnull.c
-
- ! MiNT library:
-
- - Bugs spawnvp.c
- - Changelog sscanf.c
- - Copyright execp.c isatty.c stat.c
- - Files fcntl.c kill.c pause.c statfs.c
- - GMakefile.16 fopenp.c symlink.c
- - GMakefile.32 fork.c killpg.c pipe.c sync.c
- - GNUGPL2 fscanf.c popen.c
- - Makefile getcwd.c read.c sysconf.c
- - tcattr.c
- - tcbreak.c
- - tcdrain.c
- - tcflow.c
- - tcflush.c
- - tcpgrp.c
- - OChangelog rename.c thread.c
- - PatchLev.h getdtabl.c link.c rmdir.c times.c
- - truncate.c
- - README getgroup.c lockf.c scandir.c ttyname.c
- - alarm.c gethostn.c main.c scanf.c uname.c
- - atexit.c getpages.c select.c unlink.c
- - cfspeed.c
- - clock.c getrusag.c setrlimi.c unx2dos.c
- - close.c utmp.c
- - console.c mincl sigactio.c vfork.cpp
- - crt0.cpp heapbase.c mkdir.c sigblock.c wait.c
- - mkfifo.c
- - crtinit.c ident.c mknod.c signal.c wait3.c
- - dirent.c inistack.c nice.c sleep.c waitpid.c
- - dup.c initsig.c open.c spawn.c write.c
- - exec.c ioctl.c osbind.cpp spawnve.c wtmp.c
- -
- - TOS library:
- -
- - clock.c getcwd.c null.c spawnvp.c
- - Changelo close.c gmakefil.16 open.c sscanf.c
- - DMakefile console.c gmakefil.32 osbind.c stat.c
- - GMakefile crt0.c ident.c pipe.c symdir.c
- - Makefile ioctl.c popen.c symdir.h
- - Makefile.hp device.c isatty.c read.c symlink.c
- - PatchLev.h dirent.c link.c rename.c tchars.c
- - README dup.c main.c rmdir.c times.c
- - README.FP exec.c mincl scandir.c unlink.c
- - Symbolic fcntl.c scanf.c unx2dos.c
- - TAGS fhandle.c screen.c vfork.c
- - UNIXMODE.doc fork.c mkdir.c signal.c write.c
- - fork.h new_pipe.c sleep.c
- - catch.c fscanf.c spawnve.c
- -
- - To be deleted RSN:
- -
- - gnuaux.c
- - gnulib2.c
- --- 1,63 ----
-
- ! COMMON= \
- ! _addsubd.cpp _addsubs.cpp _cmpdf2.cpp _cmpsf2.cpp _divdf3.cpp \
- ! _divmods.s _divsf3.cpp _extends.cpp _fixdfsi.cpp _fixsfsi.cpp \
- ! _fltsi.cpp _fltsisf.cpp _fxunsd.cpp _isnan.s _muldf3.cpp \
- ! _mulsf3.cpp _mulsi3.s _negdf2.s _negsf2.s _normdf.cpp \
- ! _normsf.cpp _truncdf.cpp _udivmod.s _umulsi3.s a64l.c \
- ! abort.c abs.c access.c alglobal.c alloca.cpp \
- ! alphasor.c atof.c atol.c bblink.c bcmp.c \
- ! bcopy.cpp binmode.c bsearch.c bzero.cpp calloc.c \
- ! chdir.c chmod.c ctermid.c ctime.c ctype.c \
- ! cuserid.c defmode.c difftime.c div.c div.cpp \
- ! doprnt.c eprintf.c errbase.h fclose.c fdopen.c \
- ! fflush.c ffs.c fgetc.c fgets.c filbuf.c \
- ! findfile.c flonum.h fopen.c fprintf.c fputc.c \
- ! fputs.c fread.c frexp.cpp frwbin.c fseek.c \
- ! fsetpos.c ftw.c fungetc.c fwrite.c gbl-ctors.h \
- ! getbuf.c getenv.c getlogin.c getopt.c getpass.c \
- ! getpid.c getpw.c gets.c getuid.c getw.c \
- ! gmon.c gnulib2.c grp.c ic.c ig.c \
- ! il.c ip.c iw.c ldexp.cpp lib.h \
- ! libgcc1.c libgcc2.c linea.c localtim.c longlong.h \
- ! lseek.c ltoa.c malloc.c memccpy.c memchr.c \
- ! memcmp.c mktemp.c modf.cpp nlist.c obstack.c \
- ! perror.c pgrp.c printf.c psignal.c putenv.c \
- ! qsort.c raise.c rand.c random.c realloc.c \
- ! regexp.c regsup.c sbrk.c setbuf.c setjmp.cpp \
- ! setlocal.c setvbuf.c sgtty.c siglist.c sprintf.c \
- ! stksiz.c strcat.c strchr.c strcmp.c strcoll.c \
- ! strcpy.c strcspn.c strdup.c strerror.c strftime.c \
- ! stricmp.c strlen.c strlwr.c strncat.c strncmp.c \
- ! strncpy.c strnicmp.c strpbrk.c strrchr.c strrev.c \
- ! strspn.c strstr.c strtok.c strtol.c strtoul.c \
- ! strupr.c system.c sysvar.c textio.c time.c \
- ! timeoday.c tmpfile.c tmpnam.c toxxx.c utime.c \
- ! vfprintf.c vprintf.c wcmb.c wcscat.c wcscmp.c \
- ! wcscpy.c wcslen.c wnull.c \
- !
- ! MINTLIB= \
- ! Bugs Changelog Copyright Files GMakefile.16 \
- ! GMakefile.32 GNUGPL2 MKLOG Makefile Makefile.adm \
- ! OChangelog PatchLev.h README Version alarm.c \
- ! atexit.c cfspeed.c clock.c close.c console.c \
- ! crt0.cpp crtinit.c dirent.c dup.c exec.c \
- ! execp.c fcntl.c fopenp.c fork.c fscanf.c \
- ! getcwd.c getdtabl.c getgroup.c gethostn.c getpages.c \
- ! getrusag.c heapbase.c ident.c inistack.c initsig.c \
- ! ioctl.c isatty.c kill.c killpg.c link.c \
- ! lockf.c main.c mincl mkdir.c mkfifo.c \
- ! mknod.c nice.c open.c osbind.cpp pause.c \
- ! pipe.c popen.c putpwent.c read.c rename.c \
- ! rmdir.c scandir.c scanf.c select.c setrlimi.c \
- ! sigactio.c sigblock.c signal.c sleep.c spawn.c \
- ! spawnve.c spawnvp.c sscanf.c stat.c statfs.c \
- ! symlink.c sync.c sysconf.c tcattr.c tcbreak.c \
- ! tcdrain.c tcflow.c tcflush.c tcpgrp.c thread.c \
- ! times.c truncate.c ttyname.c uname.c unlink.c \
- ! unx2dos.c utmp.c vfork.cpp wait.c wait3.c \
- ! waitpid.c write.c wtmp.c \
-
- ! CRUFT= \
- ! gnuaux.c gnulib2.c \
-
- *** /dev/null Tue Oct 26 23:50:20 1993
- --- MKLOG Fri Oct 22 13:31:20 1993
- ***************
- *** 0 ****
- --- 1,34 ----
- + #! /usr/local/gnubin/gawk.ttp -f
- +
- + BEGIN {
- + FS = ":"
- + wfile = ""
- + pmode = 0
- + }
- +
- + $1 == "Working file" {
- + wfile = $2
- + for (i = 1; substr(wfile, i, 1) == " "; i++) {
- + }
- + wfile = substr(wfile, i, length(wfile))
- + }
- +
- + /^--*$/ {
- + if (pmode == 0) {
- + pmode = 1
- + print "***** DIRECTORY_NAME/" wfile
- + }
- + }
- +
- + /^==*$/ {
- + if (pmode == 1) {
- + pmode = 0
- + print
- + }
- + }
- +
- + {
- + if (pmode == 1) {
- + print
- + }
- + }
- *** /dev/null Tue Oct 26 23:50:38 1993
- --- Makefile.adm Tue Oct 26 23:17:44 1993
- ***************
- *** 0 ****
- --- 1,91 ----
- + #
- + # Makefile.adm
- + #
- + # Makefile for administrative functions.
- + # You shouldn't need to use anything in here.
- + #
- +
- + include Files
- + include Version
- +
- + all: nothing
- +
- + FIXUPCMD=tr ' ' '\012' | sort -u | pr -5 -t -l1 | sed 's/$$/ \\/'
- +
- + #
- + # Pretty print the Files list.
- + #
- + ppfiles:
- + chmod u+w Files
- + cp Files /tmp
- + echo "" > Files
- + echo "COMMON= \\" >> Files
- + echo $(COMMON) | $(FIXUPCMD) >> Files
- + echo "" >> Files
- + echo "MINTLIB= \\" >> Files
- + echo $(MINTLIB) | $(FIXUPCMD) >> Files
- + echo "" >> Files
- + echo "CRUFT= \\" >> Files
- + echo $(CRUFT) | $(FIXUPCMD) >> Files
- + echo "" >> Files
- +
- + #
- + # Compare the Files list to the actual files to catch discrepancies.
- + #
- + f=/tmp/Files.tmp
- + r=/tmp/rcsFiles.tmp
- + d=/tmp/diffFiles.tmp
- + checkfiles:
- + echo $(COMMON) $(MINTLIB) $(CRUFT) | tr ' ' '\012' \
- + | sort -u > $f
- + rlog -R RCS/* | sed -e 's;^RCS/;;' -e 's;,v$$;;' > $r
- + -diff -u $f $r > $d
- + rm $f $r
- + less $d
- + rm $d
- +
- + c=/tmp/change.common.tmp
- + m=/tmp/change.mint.tmp
- + t=/tmp/change.tmp
- + incdir=/usr/include
- + srcdir=/src/mntlib
- + changelogs:
- + rlog -r`expr $V - 1`.2:$V.1 $(COMMON) | MKLOG \
- + | sed 's;DIRECTORY_NAME/;;' > $c
- + rlog -r`expr $V - 1`.2:$V.1 $(incdir)/RCS/* | MKLOG \
- + | sed 's;DIRECTORY_NAME/;include/;' >> $c
- + rlog -r`expr $V - 1`.2:$V.1 $(incdir)/sys/RCS/* | MKLOG \
- + | sed 's;DIRECTORY_NAME/;include/sys/;' >> $c
- + cp $c $m
- + rlog -r`expr $V - 1`.2:$V.1 $(MINTLIB) | MKLOG \
- + | sed 's;DIRECTORY_NAME/;;' >> $m
- + for dir in crlf lattice purec purec/unixname sozobon ;\
- + do \
- + rlog -r`expr $V - 1`.2:$V.1 $$dir/RCS/* | MKLOG \
- + | sed "s;DIRECTORY_NAME/;$$dir/;" >> $m ; \
- + done
- + sed -e "s/author: root/author: entropy/" -e "s/locked by:.*$$//" \
- + < $c > $t
- + mv $t $c
- + sed -e "s/author: root/author: entropy/" -e "s/locked by:.*$$//" \
- + < $m > $t
- + mv $t $m
- +
- + h=/tmp/diffh
- + s=/tmp/diffc
- + b=/tmp/diffc.jrb
- + distrib:
- + MKDIFFS `expr $V - 1` $(COMMON) > $b
- + cp $b $s
- + MKDIFFS `expr $V - 1` $(MINTLIB) >> $s
- + for dir in crlf lattice purec purec/unixname sozobon ;\
- + do \
- + MKDIFFS `expr $V - 1` $$dir/RCS/* >> $s ; \
- + done
- + rm -f $h
- + cd /usr/include ; for dir in . sys ;\
- + do \
- + $(srcdir)/MKDIFFS `expr $V - 1` $$dir/RCS/* >> $h ; \
- + done
- +
- +
- *** 38.1 1993/10/20 18:15:56
- --- OChangelog 1993/10/24 17:05:04
- ***************
- *** 4,9 ****
- --- 4,402 ----
- Changes are listed in *reverse* order, most recent changes being
- first.
-
- + PATCHLEVEL38::
- +
- + symlink.c:
- + Set errno properly for readlink() on a non-link (EINVAL not EACCES).
- + lattice/setjmp.s: ++pvt1-117
- + Add sigsetjmp() and siglongjmp() for lattice.
- + compiler.h: ++pvt1-117
- + Make LCC do the right thing in limits.h.
- + termios.h, tcattr.c:
- + Add VLNEXT and VWERASE control chars.
- + types.h: ++roemer@hera.rbi.informatik.uni-frankfurt.de.uni-frankfurt.de
- + Add fd_set type and related macros.
- + falcon.h: ++Markus_Kilbinger@ac.maus.de
- + Change return types of VsetMask() and Dsp_Reserve() from
- + void to short.
- + _mulsi3.s, _umulsi3.s: ++schwab
- + .lmul and .ulmul aren't equivalent.
- + read.c, write.c: ++schwab
- + Reduce drag. Also alias read to _read and write to _write
- + when __GNUC__ && !__MSHORT__.
- + popen.c: ++schwab
- + Reduce drag. Also simplify code by using waitpid().
- + open.c: ++schwab
- + Pass as many flags as possible through to MiNT, and let it decide
- + what to do with them. Only fall back on emulation if we can't pa a
- + given flag.
- + ioctl.c, stat.c: ++schwab
- + Reduce drag.
- + rename.c: ++schwab
- + Try to preserve the old file under the new name as long as possible,
- + in case an error occurs. Unfortunately we cannot determine exactly
- + why Frename() failed, so this is not perfect (bug?). Also, reduce
- + library drag.
- + alarm.c: ++schwab
- + Use Talarm() instead of alarm() to reduce drag. Also
- + fix a bug in the code for old versions of MiNT. [I messed with
- + this a lot to get some more error checking and also added some
- + comments. -entropy]
- + wait.h: ++schwab@ls5.informatik.uni-dortmund.de
- + Make the wait prototype indirection more robust. Also fix the
- + definition of WIFSIGNALED().
- + wait3.c:
- + Remove bogus usage of non-existent rusage value added in PL37.
- + falcon.h: ++pvt1-117
- + Inline traps for Lattice.
- + wcmb.c: ++pvt1-117
- + Use _wnull from wnull.c instead of a local variable.
- + wcscat.c, wcscmp.c, wcscpy.c, wcslen.c, wnull.c: ++pvt1-117
- + NEW files for ISO wide char support.
- + stdlib.h: ++pvt1-117@nada.kth.se
- + Add prototypes for new ISO widechar functions.
- +
- + PATCHLEVEL37::
- +
- + bzero.cpp, mincl:
- + Break bzero and memset into separate .o's (reduce drag).
- + gethostn.c: ++sjg@phlem.ph.kcl.ac.uk, ++entropy
- + Look in /etc/hostname instead of /local/hostname, and look in the
- + file before the environment.
- + lattice/mc3.prj, lattice/mcnb3.prj, lattice/mcr3.prj,
- + lattice/mcrnb3.prj: ++pvt1-117
- + Remove long mul/div with 030 code.
- + string.h, strcmp.c: ++pvt1-117
- + Allow use of builtin string functions.
- + lattice/bcopy.s, lattice/crt0.s, lattice/inc.i, lattice/linea.s,
- + lattice/setjmp.s, lattice/vfork.s: ++pvt1-117
- + If we're lucky, they might decide to keep us as pets.
- + file.h:
- + Add FREAD and FWRITE macros for TIOCFLUSH flushing modes (not yet
- + implemented in MiNT).
- + unistd.h:
- + Add tcgetpgrp() and tcsetpgrp() protos.
- + ioctl.h:
- + Changes to account for definitions in common with termios.h,
- + also add _RTSCTS flag definition.
- + termios.h, cfspeed.c, tcattr.c, tcbreak.c, tcdrain.c,
- + tcflow.c, tcflush.c, tcpgrp.c:
- + NEW files, partially implementing the POSIX termios functions.
- + (UNTESTED).
- + wait.h:
- + Add WSTOPSIG() macro (POSIX).
- + utime.c:
- + Add a kludge so that we pretend the utime() worked for directories.
- + mkdir.c, stat.h:
- + Mode argument is now mode_t instead of unsigned (POSIX).
- + mkfifo.c, stat.h:
- + NEW file providing a fake mkfifo(), and a prototype for it.
- + mknod.c:
- + Provide at least a little functionality in mknod().
- + resource.h, getrusag.c, wait3.c, wait.c:
- + Add BSD-compatible struct rusage members with 0 values for
- + minimal compatibility.
- + Use Pwaitpid() instead of Pwait3() for wait() and wait3()
- + (as requested in MiNT's dosmem.c).
- + errno.h:
- + Added EOPNOTSUPP as (temporary) alias for EINVAL.
- + Added ECHILD as alias for ENOENT (POSIX).
- + lattice/*.prj: ++pvt1-117
- + NEW files: 48 new project files for Lattice. Yow.
- + doprnt.c, fprintf.c, printf.c, sprintf.c,
- + vfprintf.c, vfprintf.c, lib.h: ++schwab
- + Change the interface of _doprnt to also pass a putchar function
- + similar to _scanf. This allows use of sprintf in a program which
- + doesn't use stdio and it simplifies the implementation of sprintf a
- + bit.
- + fscanf.c, scanf.c, sscanf.c, lib.h: ++schwab
- + The implementation of sscanf had a bug: the ungetc function would
- + write into the scanned string passed to sscanf. This is a Bad Thing,
- + since the string could be in readonly memory. Also changed the
- + interface a bit so that there is less need for casts. Strictly
- + speaking, the old way of casting the function pointers can result in
- + undefined behaviour.
- + getdtabl.c:
- + Use _SC_OPEN_MAX instead of magic number 2.
- + lseek.c: ++schwab@ls5.informatik.uni-dortmund.de
- + Make lseek() and tell() always return -1 on errors. Make lseek()
- + work better with unseekable devices. Don't modify errno
- + when no error has occurred. General cleanup.
- + lattice/osbind.s, lattice/lcsnb.prj, lattice/lcnb.prj: ++pvt1-117
- + DELETED files.
- + nlist.c, select.c, sync.c, truncate.c: ++pvt1-117
- + Add some typecasts to keep Lattice happy.
- + mintbind.h: ++pvt1-117@nada.kth.se
- + Add some casts in the Lattice C inlines.
- + frexp.cpp: ++Cristof_Stadler@s2.maus.de
- + Bug fix: add a missing @.
- + read.c:
- + Add the beginnings of some code to make read() POSIX compliant.
- + It turns out that this will require kernel changes so this
- + code is currently inactive.
- + lockf.c:
- + Fix so flock() and lockf() block when appropriate.
- + dirent.c:
- + Bug fix: rewinddir() wasn't resetting the directory offset to 0.
- + crtinit.c, ctime.c, doprnt.c, findfile.c, getpass.c,
- + localtim.c, strftime.c, strncat.c, unx2dos.c: ++pvt1-117@nada.kth.se
- + Removed some dead assignments and increments.
- + stdlib.h:
- + Added NULL (POSIX).
- + dup.c:
- + Clear the close-on-exec flag of the duped handle for both dup()
- + and dup2().
- + open.c:
- + For O_TRUNC mode, try to use FTRUNCATE. Also, clear the
- + close-on-exec bit of the opened file.
- +
- + PATCHLEVEL36::
- +
- + mincl:
- + Added target for nlist.o.
- + mincl, sozobon/makefile, lattice/mincl.lcc, purec/mintlib.prj: ++entropy
- + Added targets for truncate.o, wcmb.o, printf.o, vfprintf.o,
- + vprintf.o.
- + truncate.c, types.h: ++schwab
- + NEW file, implementation of truncate()/ftruncate(). Protos in
- + types.h.
- + getwd.c: ++schwab
- + Make getwd() return an error message in the buffer on failure.
- + _addsubs.cpp: ++nox
- + Correct an inverted branch.
- + open.c: ++nox@jelal.north.de, ++entropy
- + Fix so that when we use Fcreate() we then Fclose() and Fopen() the
- + file, so we get sharing modes correct.
- + utime.c: ++schwab
- + utime(NULL) uses time() to convert the current time to Unix format
- + and immediately converts it back to GEMDOS format. Instead it should
- + use the GEMDOS format directly.
- + stime() must be changed because Tset{date,time} can now return a
- + real error number. This depends on Tset{date,time} returning -1 if
- + args are bad, which is true for all TOS versions, i think.
- + ttyname.c: ++schwab
- + ttyname() should not return names starting with "u:" when _rootdir is
- + 'U', to be consistent with rest of library. find_ino now gets the
- + dir name in gemdos format and it calls dos2unx on it. ttyname.c
- + unnecessarily depends on dirent.c, we know that Dreaddir works. We
- + can also avoid the hairy fstat(), since we know that Fcntl(FSTAT)
- + works.
- + signal.c: ++schwab
- + Pass through additional signal handler parameters via _trampoline().
- + rename.c: ++rwilhelm@physik.tu-muenchen.de
- + Eliminate a useless strcmp().
- + main.c: ++schwab
- + When converting a path variable from the environment, we can conserve
- + memory by using the fact that _path_unx2dos enlarges the path by at
- + most two times the number of elements. On the other hand, if there is
- + no PCONVERT env var, the provided space was too small.
- + isatty.c: ++schwab
- + Removes the dependency of isatty() on ttyname().
- + spawn.c: ++schwab
- + Cleaned up the script emulation code, and changed it in that only
- + files starting with "#!" are interpretable (as Unix does). The
- + first 1024 bytes of the file are examined when looking for
- + interpreter and arguments. A small bug is also corrected: errno
- + should never be changed when there is no error.
- + falcon.h: ++Markus_Kilbinger@ac.maus.de
- + Add two omitted backslashes to fix new trap definitions.
- + chmod.c: ++schwab@ls5.informatik.uni-dortmund.de
- + chmod() unnecessarily calls stat() to check if the file is a
- + directory; this information is already available through Fattrib().
- + nlist.c, nlist.h: ++shenson@nyx.cs.du.edu
- + NEW files nlist.c, nlist.h. A version of nlist() for mntlib/toslib.
- + Works OK with my binary config program but your milage may vary.
- + wcmb.c, stdlib.h: ++pvt1-117@nada.kth.se
- + NEW file wcmb.c for ANSI wide char functions.
- + waitpid.c: ++Robert.Wilhelm@Physik.TU-Muenchen.DE
- + Add a forgotten patch for non-GCC compilers.
- + ctype.h: ++dsb@cs.duke.edu
- + The toint() macro in ctype.h was translating hex digits wrong.
- + --begin jrb changes--
- + math-68881.h: ++jrb
- + -- Put extern "C" around file when __cplusplus
- + -- Make hypot use internal version of sqrt (because signature
- + clash in libg++:xfix )
- + -- Define internal version (_sqrt) of sqrt.
- + osbind.h: ++Robert.Wilhelm@Physik.TU-Muenchen.DE
- + Changed addw #n,sp to lea n(s),sp which is 4 cycles shorter.
- + fprintf.c: ++jrb
- + Break out vfprintf, printf and vprintf into their own .o's. That
- + way the user can replace any of them.
- + printf.c, vfprintf.c, vprintf.c:: ++jrb
- + NEW files.
- + mincl: ++jrb
- + Add targets for above.
- + gnulib2.c: Steven Ourada (sourada@iastate.edu)
- + #define WORD_BIG_ENDIAN for long long.
- + --end jrb changes--
- +
- + PATCHLEVEL35::
- +
- + unx2dos.c: ++schwab
- + _unx2dos("/dev/.") -> ".:" -> file not found. This patch isn't
- + optimal, because it only works for the first 26 drives, but better
- + than before. (Who has more than 26 drives anyway? :-)
- + wait.c, waitpid.c, wait.h: ++Robert.Wilhelm@Physik.TU-Muenchen.DE
- + Accept both POSIX and BSD style parameters. [I'm not certain these
- + patches really leave us with a POSIX-compliant wait*() suite, but
- + I'll leave it be for now -entropy]
- + Makefile: ++Bjarne_Pohlers
- + Fix 020 targets to use 'make install020', and fix all targets to
- + do 'make clean' only when necessary.
- + doprnt.c, scanf.c: ++Bjarne_Pohlers@ms2.maus.de
- + Add support for printing/scanning long longs.
- + div.c: ++pvt1-117
- + Add div functions for compilers other than GCC.
- + bsearch.c: ++dsb
- + Fix bug reported by Thorsten Roskowetz: the order arguments to
- + bsearch()'s comparison function was reversed.
- + sozobon/makefile, sozobon/readme: ++dsb
- + Updated to reflect recent changes in the library.
- + thread.c: ++dsb
- + Fix a strange declaration (extern static?!?).
- + sozobon/linea.s, sozobon/makefile: ++dsb@cs.duke.edu
- + Fix some HSC linker problems by punting alglobal.o.
- + ioctl.h: ++Jan-Hinrich_Fessel@un.maus.ruhr.de (Jan-Hinrich Fessel)
- + Make it possible to include both ioctl.h and filesys.h.
- + pgrp.c: ++schwab
- + Correctly check the MiNT version in _bsd_getpgrp().
- + clock.c, doprnt.c, main.c, thread.c, uname.c: ++pvt1-117
- + Changes to keep Lattice C from generating annoying warnings, and
- + other miscellaneous cleanups. [Once again I've modified these
- + patches in various ways, so if something's broken it's my fault
- + -entropy].
- + math.h, process.h, support.h, unistd.h, exec.c, execp.c, findfile.c,
- + scanf.c, spawn.c, spawnve.c, spawnvp.c, statfs.c, textio.c: ++schwab
- + Add 'const' to declarations where appropriate.
- + malloc.c: ++schwab
- + Make malloc() round all memory requests to the page size to be able
- + to use all the available memory.
- + setjmp.cpp, setjmp.h: ++schwab
- + Some cleanup; one element of jmp_buf[] can be saved by using the
- + fact that signal 0 cannot be masked; why was the type char*[] insead
- + of long[]?
- + osbind.cpp: ++schwab
- + Add some missing functions added; code cleanup.
- + select.c: ++schwab@ls5.informatik.uni-dortmund.de
- + Fix select() to deal with timeouts of more than 65.535 seconds. This
- + is needed for emacs 19.
- + statfs.c: ++schwab
- + In statfs(): before passing to Dcntl, the path must be passed
- + through _unx2dos, and it should be declared const.
- + sysconf.c: ++schwab
- + Update the value returned for _PC_LAST.
- + fopen.c: ++schwab
- + Make fopen() use 0666 as the default file mask (use umask() if you
- + want something else); make mkdir() respect the umask setting.
- + mktemp.c: ++schwab
- + mktemp() can generate a name more than once; the length of the
- + pattern should not be changed (emacs depends on it).
- + lattice/crt0.s: ++pvt1-117
- + Add some conditional stuff depending on program type.
- + utime.c: ++shenson@nyx.cs.du.edu
- + Pass through a NULL tset argument unchanged to the filesystem
- + so that it can determine permissions correctly.
- + falcon.h: ++hyc@hanauma.Jpl.Nasa.Gov, ++Markus_Kilbinger@ac.maus.de
- + Change several erroneous macros to correctly cast return to short.
- + lattice/*: ++pvt1-117
- + Strip all carriage returns from Lattice C files.
- + spawn.c: ++Ole_Arndt
- + Add script interpretation (#!).
- + sync.c, support.h: ++Ole_Arndt
- + NEW file, sync() and fsync() (for Minixfs only). Proto in support.h.
- + sigactio.c: ++Ole_Arndt
- + Use __NSIG instead of NSIG, may as well be POSIX-clean.
- + errno.h: ++Ole_Arndt
- + Add errors ENOTDIR and ELOOP.
- + signal.h: ++Ole_Arndt@f.maus.de (Ole Arndt)
- + Fix definition of _SIGSET_MAX_INDEX to correct several bugs
- + in the POSIX signal mask functions.
- + stdio.h:
- + Add vsscanf() and _getbuf() protos (yech).
- + dirent.h:
- + Add alphasort() proto (excluded by _POSIX_SOURCE).
- + utmp.c, wtmp.c, utmp.h:
- + Rename write_utmp() to _write_utmp(). Rename write_wtmp() to
- + _write_wtmp(). Add protos (and other cleanups) to utmp.h.
- + atof.c, fdopen.c, fputs.c:
- + Move 'register' to beginning of declarations (shuts up gcc -Wall).
- + fwrite.c: ++michal
- + With unbuffered IO fwrite miscounts number of characters written.
- + findfile.c: ++michal
- + Try to accomodate tos style paths PATH=e:\bin,c:\bin,...
- + unistd.h: ++jrb
- + Take out setlinebuf, doesn't really belong here.
- + ffs.c: ++NTOMCZAK@vm.ucs.UAlberta.CA (Michal Jaegermann)
- + An even faster algorithm. Yow! Are we optimized yet?
- + support.h:
- + Added _exit() and gethostname() protos. Removed write_utmp() and
- + write_wtmp() protos.
- + lib.h, crtinit.c:
- + Moved prototypes from crtinit.c to lib.h, and added more to lib.h.
- + abort.c, main.c, lib.h:
- + Make abort() close file handles in exactly the same manner
- + as exit().
- + sigactio.c, signal.h: ++nox@jelal.north.de, ++Oskar, ++entropy
- + Fix type of sa_mask in struct sigaction (sigset_t, not long).
- + Clean up dirty tricks in sigaction() (UNTESTED).
- + falcon.h: ++Markus_Kilbinger@ac.maus.de, ++entropy
- + Add missing traps.
- + unistd.h, support.h:
- + Cleaned unistd.h for easier reading. Moved back the link(),
- + symlink(), and readlink() protos from support.h (sorry if I seem
- + really indecisive on where some of these protos belong).
- + doprnt.c, getdtabl.c, gethostn.c, mknod.c, nice.c, open.c, putenv.c,
- + symlink.c, utime.c:
- + Include appropriate headers for protos (and fixed mknod() proto).
- + sys/statfs.h:
- + Add statfs() proto.
- + sys/errno.h, sys/ioctl.h, sys/resource.h, sys/signal.h, sys/wait.h:
- + Fix multiple-include protection to hopefully prevent possible
- + infinite include loops (see Bugs file).
- + getpw.c, pwd.h: ++Jan-Hinrich_Fessel@un.maus.de (Oskar)
- + Use uid_t (_UID_T) for getpwuid() instead of int (POSIX).
- + lattice/inc.i: ++pvt1-117@nada.kth.se
- + Fix a typo.
- +
- + PATCHLEVEL34::
- +
- + ffs.c: ++frog
- + Much faster algorithm.
- + _fixsfsi.cpp, _fltsisf.cpp, frexp.cpp, modf.cpp,
- + Makefile: ++dc4i@br0.hrz.th-darmstadt.de (Stefan Steyer)
- + Bug fixes for SFP004 coprocessor code. Add sfp004 targets.
- + doprnt.c: ++schwab@ls5.informatik.uni-dortmund.de (Andreas Schwab)
- + The decimal precision in a printf format does not include the sign or
- + hex prefix, e.g. printf ("%-2.5d", -18) should print "-00018".
- + select.c, time.h: ++Frank_Baumgart@pb.maus.de, ++entropy
- + Get struct timeval from time.h, eliminate local definition.
- + Add prototype of select() to time.h (is there a better place?)
- + ctype.h, grp.h, dirent.h, stddef.h, string.h:
- + Cleaned up for POSIX.
- + wait.h, pwd.h:
- + Cleaned up for POSIX (need more work).
- + compiler.h, limits.h, stdio.h:
- + Set stream limits for POSIX.
- + locale.h:
- + Define NULL if not already defined (POSIX).
- + limits.h:
- + Raise value of _POSIX_NGROUPS_MAX from 0 to arbitrary value of
- + 512 now that we have a decent getgroups().
- + fcntl.c, fcntl.h, errno.h:
- + Add definition of F_SETLKW to fcntl.h. Add ELOCKED to errno.h.
- + If Fcntl() gets ELOCKED, return EACCES instead (POSIX).
- + unistd.h, stat.h, fcntl.h:
- + Moved many prototypes to the correct headers.
- + sigactio.c, signal.h:
- + Fix some violations of POSIX namespace.
- + stab.h, stab.def, Copyright:
- + Symbol table definition files MOVED from gnu/ subdirectory to main
- + include file directory. Copyright message for these files added to
- + Copyright file.
- + OChangelog, Changelog:
- + "Changes" file renamed to OChangelog. New file Changelog created.
- +
- PATCHLEVEL33::
-
- getgroup.c: ++Ole_Arndt@f.maus.de, ++entropy
- *** 38.1 1993/10/20 18:15:56
- --- PatchLev.h 1993/10/22 17:31:40
- ***************
- *** 3,6 ****
- * directory.
- */
-
- ! #define PatchLevel "38"
- --- 3,6 ----
- * directory.
- */
-
- ! #define PatchLevel "39"
- *** /dev/null Tue Oct 26 23:51:30 1993
- --- Version Fri Oct 22 13:31:48 1993
- ***************
- *** 0 ****
- --- 1 ----
- + V=39
- *** 38.1 1993/10/20 18:15:56
- --- crtinit.c 1993/10/22 17:34:40
- ***************
- *** 132,138 ****
- short _split_mem = 0;
-
- static long parseargs __PROTO((BASEPAGE *));
- - static void setup_handlers __PROTO((void));
-
- /*
- * accessories start here:
- --- 132,137 ----
- ***************
- *** 281,287 ****
- _PgmSize = m;
-
- /* establish handlers, call the main routine */
- ! setup_handlers();
-
- /* start profiling, if we were linked with gcrt0.o */
- #ifdef __GNUC__
- --- 280,286 ----
- _PgmSize = m;
-
- /* establish handlers, call the main routine */
- ! _init_signal();
-
- /* start profiling, if we were linked with gcrt0.o */
- #ifdef __GNUC__
- ***************
- *** 478,488 ****
-
- bail_out:
- return count+4;
- - }
- -
- - static void setup_handlers()
- - {
- - _init_signal();
- }
-
- /*
- --- 477,482 ----
- *** 38.1 1993/10/20 18:15:56
- --- dup.c 1993/10/24 16:00:04
- ***************
- *** 36,41 ****
- --- 36,47 ----
- __open_stat[__OPEN_INDEX(handle)];
- }
- if (__mint) {
- + if (rv == 0) {
- + /* New controlling tty. */
- + (void) Fforce(-1, rv);
- + __open_stat[__OPEN_INDEX(-1)] =
- + __open_stat[__OPEN_INDEX(handle)];
- + }
- flags = (long)Fcntl(rv, (long)0, F_GETFD);
- (void)Fcntl(rv, flags & ~FD_CLOEXEC, F_SETFD);
- }
- *** 38.1 1993/10/20 18:15:56
- --- main.c 1993/10/24 12:39:34
- ***************
- *** 153,159 ****
-
- for(i = 0, f = _iob; i < 3; ++i, ++f) { /* flag device streams */
- if(isatty(f->_file = i))
- ! f->_flag |= _IODEV;
- else
- if(f == stdout) { /* stderr is NEVER buffered */
- /* if stdout re-directed, make it full buffered */
- --- 153,159 ----
-
- for(i = 0, f = _iob; i < 3; ++i, ++f) { /* flag device streams */
- if(isatty(f->_file = i))
- ! f->_flag |= (__mint ? _IODEV|_IOBIN : _IODEV);
- else
- if(f == stdout) { /* stderr is NEVER buffered */
- /* if stdout re-directed, make it full buffered */
- *** 38.1 1993/10/20 18:15:56
- --- open.c 1993/10/24 15:55:40
- ***************
- *** 139,155 ****
- rv = -ENOENT;
- }
-
- - if((rv >= 0) && (iomode & O_APPEND) && !(modemask & _REALO_APPEND))
- - (void)Fseek(0L, rv, SEEK_END);
- -
- if(rv < (__SMALLEST_VALID_HANDLE)) {
- errno = -rv;
- return __SMALLEST_VALID_HANDLE - 1;
- }
- if (__mint) {
- ! fcbuf = (long)Fcntl(rv, (long)0, F_GETFD);
- ! (void)Fcntl(rv, fcbuf & ~FD_CLOEXEC, F_SETFD);
- }
- /* Important side effect: isatty(rv) sets up flags under TOS */
- if (isatty(rv) && (!(iomode & O_NOCTTY)) && (!(isatty(-1)))) {
- (void) Fforce(-1, rv); /* new controlling tty */
- --- 139,173 ----
- rv = -ENOENT;
- }
-
- if(rv < (__SMALLEST_VALID_HANDLE)) {
- errno = -rv;
- return __SMALLEST_VALID_HANDLE - 1;
- }
- if (__mint) {
- ! if (!(iomode & O_NOCTTY)) {
- ! /* Relocate the handle to the lowest positive numbered handle
- ! available, and possibly make it the new controlling tty.
- ! */
- ! fcbuf = Fcntl(rv, (long) 0, F_DUPFD);
- ! if (fcbuf >= 0) {
- ! if (fcbuf < rv) {
- ! (void) Fclose(rv);
- ! rv = (int) fcbuf;
- ! } else {
- ! (void) Fclose(fcbuf);
- ! }
- ! if (rv == 0) {
- ! (void) Fforce(-1, rv);
- ! __open_stat[__OPEN_INDEX(-1)] = __open_stat[__OPEN_INDEX(rv)];
- ! }
- ! }
- ! }
- ! fcbuf = (long)Fcntl(rv, (long)0, F_GETFD);
- ! (void)Fcntl(rv, fcbuf & ~FD_CLOEXEC, F_SETFD);
- }
- + if ((iomode & O_APPEND) && !(modemask & _REALO_APPEND))
- + (void)Fseek(0L, rv, SEEK_END);
- +
- /* Important side effect: isatty(rv) sets up flags under TOS */
- if (isatty(rv) && (!(iomode & O_NOCTTY)) && (!(isatty(-1)))) {
- (void) Fforce(-1, rv); /* new controlling tty */
- *** 38.1 1993/10/20 18:15:56
- --- read.c 1993/10/22 21:00:28
- ***************
- *** 116,126 ****
- /* watch out for TTYs */
- if (__mint == 0 && isatty(fd)) {
- foo = (char *)buf;
- ! if (*foo == 4) /* ^D for EOF?? */
- return 0;
- ! foo[r] = '\n'; /* %!#@ TOS doesn't put in the LF */
- ! Cconout('\n'); /* not quite right if fd != 0 */
- ! r++;
- }
- }
- else {
- --- 116,127 ----
- /* watch out for TTYs */
- if (__mint == 0 && isatty(fd)) {
- foo = (char *)buf;
- ! if (*foo == __tchars.t_eofc) /* EOF character? */
- return 0;
- ! if ((flags & CRMOD) && r && (foo[r - 1] == '\r')) {
- ! foo[r - 1] = '\n';
- ! Cconout('\n'); /* not quite right if fd != 0 */
- ! }
- }
- }
- else {
- *** 38.1 1993/10/20 18:15:56
- --- rename.c 1993/10/22 17:42:10
- ***************
- *** 5,25 ****
- #include <osbind.h>
- #include <string.h>
- #include <unistd.h>
- #include "lib.h"
-
- int rename(_oldname, _newname)
- const char *_oldname, *_newname;
- {
- char oldname[PATH_MAX], newname[PATH_MAX];
- int rval;
- ! #if 0
- ! if (!strcmp(_oldname, _newname)) {
- ! rval = 0; /* no-op */
- ! }
- ! #endif
-
- _unx2dos(_oldname, oldname);
- _unx2dos(_newname, newname);
-
- rval = Frename(0, oldname, newname);
- if (rval == 0)
- --- 5,37 ----
- #include <osbind.h>
- #include <string.h>
- #include <unistd.h>
- + #include <stat.h>
- + #include <mintbind.h>
- #include "lib.h"
-
- + extern int __mint;
- +
- int rename(_oldname, _newname)
- const char *_oldname, *_newname;
- {
- char oldname[PATH_MAX], newname[PATH_MAX];
- int rval;
- ! struct stat oldstat;
- ! struct stat newstat;
-
- _unx2dos(_oldname, oldname);
- _unx2dos(_newname, newname);
- +
- + if (__mint
- + && (Fxattr(1, newname, &newstat) == 0)
- + && (Fxattr(1, oldname, &oldstat) == 0)
- + && (newstat.st_dev == oldstat.st_dev)
- + && (newstat.st_ino == oldstat.st_ino))
- + {
- + /* rename("foo", "./foo"); */
- + errno = EEXIST;
- + return -1;
- + }
-
- rval = Frename(0, oldname, newname);
- if (rval == 0)
- *** 38.1 1993/10/20 18:15:56
- --- select.c 1993/10/25 09:58:14
- ***************
- *** 5,16 ****
-
- #include <errno.h>
- #include <mintbind.h>
- #include <time.h>
-
- int
- select(junk, rfds, wfds, xfds, timeout)
- int junk;
- ! long *rfds, *wfds, *xfds;
- struct timeval *timeout;
- {
- /* the only tricky part, really, is figuring out the timeout value.
- --- 5,17 ----
-
- #include <errno.h>
- #include <mintbind.h>
- + #include <types.h>
- #include <time.h>
-
- int
- select(junk, rfds, wfds, xfds, timeout)
- int junk;
- ! fd_set *rfds, *wfds, *xfds;
- struct timeval *timeout;
- {
- /* the only tricky part, really, is figuring out the timeout value.
- ***************
- *** 21,27 ****
- unsigned long mtime;
- unsigned short stime;
- int rval;
- ! long save_rfds = 0, save_wfds = 0, save_xfds = 0;
-
- if (rfds) save_rfds = *rfds;
- if (wfds) save_wfds = *wfds;
- --- 22,28 ----
- unsigned long mtime;
- unsigned short stime;
- int rval;
- ! fd_set save_rfds = 0, save_wfds = 0, save_xfds = 0;
-
- if (rfds) save_rfds = *rfds;
- if (wfds) save_wfds = *wfds;
- *** 38.1 1993/10/20 18:15:56
- --- wait.c 1993/10/24 18:47:06
- ***************
- *** 18,24 ****
- long r;
- int exit_status, sig_term, pid;
- extern int __mint;
- ! #ifdef __GNUC__
- int *status = _status.__wi;
- #else
- int *status = _status;
- --- 18,24 ----
- long r;
- int exit_status, sig_term, pid;
- extern int __mint;
- ! #ifdef _EXPERIMENTAL_WAIT_MACROS
- int *status = _status.__wi;
- #else
- int *status = _status;
- *** 38.1 1993/10/20 18:15:56
- --- waitpid.c 1993/10/24 18:47:08
- ***************
- *** 22,28 ****
- long r;
- int exit_status, sig_term;
- union wait *statwait;
- ! #ifdef __GNUC__
- int *status = _status.__wi;
- #else
- int *status = _status;
- --- 22,28 ----
- long r;
- int exit_status, sig_term;
- union wait *statwait;
- ! #ifdef _EXPERIMENTAL_WAIT_MACROS
- int *status = _status.__wi;
- #else
- int *status = _status;
- *** 38.1 1993/10/21 21:49:38
- --- lattice/mc.prj 1993/10/22 02:11:16
- ***************
- *** 15,20 ****
- --- 15,21 ----
- ..\BINMODE.C
- ..\BSEARCH.C
- ..\CALLOC.C
- + ..\CFSPEED.C
-
- ..\CHDIR.C
- ..\CHMOD.C
- ..\CLOCK.C
- ***************
- *** 98,103 ****
- --- 99,105 ----
- ..\MEMCHR.C
- ..\MEMCMP.C
- ..\MKDIR.C
- + ..\MKFIFO.C
-
- ..\MKNOD.C
- ..\MKTEMP.C
- ..\NICE.C
- ***************
- *** 174,179 ****
- --- 176,187 ----
- ..\SYSCONF.C
- ..\SYSTEM.C
- ..\SYSVAR.C
- + ..\TCATTR.C
-
- + ..\TCBREAK.C
-
- + ..\TCDRAIN.C
-
- + ..\TCFLOW.C
-
- + ..\TCFLUSH.C
-
- + ..\TCPGRP.C
-
- ..\TEXTIO.C
- ..\THREAD.C
- ..\TIME.C
- *** 38.1 1993/10/21 21:49:38
- --- lattice/mc3.prj 1993/10/22 02:11:18
- ***************
- *** 15,20 ****
- --- 15,21 ----
- ..\BINMODE.C
- ..\BSEARCH.C
- ..\CALLOC.C
- + ..\CFSPEED.C
-
- ..\CHDIR.C
- ..\CHMOD.C
- ..\CLOCK.C
- ***************
- *** 98,103 ****
- --- 99,105 ----
- ..\MEMCHR.C
- ..\MEMCMP.C
- ..\MKDIR.C
- + ..\MKFIFO.C
-
- ..\MKNOD.C
- ..\MKTEMP.C
- ..\NICE.C
- ***************
- *** 174,179 ****
- --- 176,187 ----
- ..\SYSCONF.C
- ..\SYSTEM.C
- ..\SYSVAR.C
- + ..\TCATTR.C
-
- + ..\TCBREAK.C
-
- + ..\TCDRAIN.C
-
- + ..\TCFLOW.C
-
- + ..\TCFLUSH.C
-
- + ..\TCPGRP.C
-
- ..\TEXTIO.C
- ..\THREAD.C
- ..\TIME.C
- *** 38.1 1993/10/21 21:49:38
- --- lattice/mcnb.prj 1993/10/22 02:11:22
- ***************
- *** 15,20 ****
- --- 15,21 ----
- ..\BINMODE.C
- ..\BSEARCH.C
- ..\CALLOC.C
- + ..\CFSPEED.C
-
- ..\CHDIR.C
- ..\CHMOD.C
- ..\CLOCK.C
- ***************
- *** 98,103 ****
- --- 99,105 ----
- ..\MEMCHR.C
- ..\MEMCMP.C
- ..\MKDIR.C
- + ..\MKFIFO.C
-
- ..\MKNOD.C
- ..\MKTEMP.C
- ..\NICE.C
- ***************
- *** 174,179 ****
- --- 176,187 ----
- ..\SYSCONF.C
- ..\SYSTEM.C
- ..\SYSVAR.C
- + ..\TCATTR.C
-
- + ..\TCBREAK.C
-
- + ..\TCDRAIN.C
-
- + ..\TCFLOW.C
-
- + ..\TCFLUSH.C
-
- + ..\TCPGRP.C
-
- ..\TEXTIO.C
- ..\THREAD.C
- ..\TIME.C
- *** 38.1 1993/10/21 21:49:38
- --- lattice/mcnb3.prj 1993/10/22 02:11:24
- ***************
- *** 15,20 ****
- --- 15,21 ----
- ..\BINMODE.C
- ..\BSEARCH.C
- ..\CALLOC.C
- + ..\CFSPEED.C
-
- ..\CHDIR.C
- ..\CHMOD.C
- ..\CLOCK.C
- ***************
- *** 98,103 ****
- --- 99,105 ----
- ..\MEMCHR.C
- ..\MEMCMP.C
- ..\MKDIR.C
- + ..\MKFIFO.C
-
- ..\MKNOD.C
- ..\MKTEMP.C
- ..\NICE.C
- ***************
- *** 174,179 ****
- --- 176,187 ----
- ..\SYSCONF.C
- ..\SYSTEM.C
- ..\SYSVAR.C
- + ..\TCATTR.C
-
- + ..\TCBREAK.C
-
- + ..\TCDRAIN.C
-
- + ..\TCFLOW.C
-
- + ..\TCFLUSH.C
-
- + ..\TCPGRP.C
-
- ..\TEXTIO.C
- ..\THREAD.C
- ..\TIME.C
- *** 38.1 1993/10/21 21:49:38
- --- lattice/mcr.prj 1993/10/22 02:11:28
- ***************
- *** 15,20 ****
- --- 15,21 ----
- ..\BINMODE.C
- ..\BSEARCH.C
- ..\CALLOC.C
- + ..\CFSPEED.C
-
- ..\CHDIR.C
- ..\CHMOD.C
- ..\CLOCK.C
- ***************
- *** 98,103 ****
- --- 99,105 ----
- ..\MEMCHR.C
- ..\MEMCMP.C
- ..\MKDIR.C
- + ..\MKFIFO.C
-
- ..\MKNOD.C
- ..\MKTEMP.C
- ..\NICE.C
- ***************
- *** 174,179 ****
- --- 176,187 ----
- ..\SYSCONF.C
- ..\SYSTEM.C
- ..\SYSVAR.C
- + ..\TCATTR.C
-
- + ..\TCBREAK.C
-
- + ..\TCDRAIN.C
-
- + ..\TCFLOW.C
-
- + ..\TCFLUSH.C
-
- + ..\TCPGRP.C
-
- ..\TEXTIO.C
- ..\THREAD.C
- ..\TIME.C
- *** 38.1 1993/10/21 21:49:38
- --- lattice/mcr3.prj 1993/10/22 02:11:30
- ***************
- *** 15,20 ****
- --- 15,21 ----
- ..\BINMODE.C
- ..\BSEARCH.C
- ..\CALLOC.C
- + ..\CFSPEED.C
-
- ..\CHDIR.C
- ..\CHMOD.C
- ..\CLOCK.C
- ***************
- *** 98,103 ****
- --- 99,105 ----
- ..\MEMCHR.C
- ..\MEMCMP.C
- ..\MKDIR.C
- + ..\MKFIFO.C
-
- ..\MKNOD.C
- ..\MKTEMP.C
- ..\NICE.C
- ***************
- *** 174,179 ****
- --- 176,187 ----
- ..\SYSCONF.C
- ..\SYSTEM.C
- ..\SYSVAR.C
- + ..\TCATTR.C
-
- + ..\TCBREAK.C
-
- + ..\TCDRAIN.C
-
- + ..\TCFLOW.C
-
- + ..\TCFLUSH.C
-
- + ..\TCPGRP.C
-
- ..\TEXTIO.C
- ..\THREAD.C
- ..\TIME.C
- *** 38.1 1993/10/21 21:49:38
- --- lattice/mcrnb.prj 1993/10/22 02:11:32
- ***************
- *** 15,20 ****
- --- 15,21 ----
- ..\BINMODE.C
- ..\BSEARCH.C
- ..\CALLOC.C
- + ..\CFSPEED.C
-
- ..\CHDIR.C
- ..\CHMOD.C
- ..\CLOCK.C
- ***************
- *** 98,103 ****
- --- 99,105 ----
- ..\MEMCHR.C
- ..\MEMCMP.C
- ..\MKDIR.C
- + ..\MKFIFO.C
-
- ..\MKNOD.C
- ..\MKTEMP.C
- ..\NICE.C
- ***************
- *** 174,179 ****
- --- 176,187 ----
- ..\SYSCONF.C
- ..\SYSTEM.C
- ..\SYSVAR.C
- + ..\TCATTR.C
-
- + ..\TCBREAK.C
-
- + ..\TCDRAIN.C
-
- + ..\TCFLOW.C
-
- + ..\TCFLUSH.C
-
- + ..\TCPGRP.C
-
- ..\TEXTIO.C
- ..\THREAD.C
- ..\TIME.C
- *** 38.1 1993/10/21 21:49:38
- --- lattice/mcrnb3.prj 1993/10/22 02:11:36
- ***************
- *** 15,20 ****
- --- 15,21 ----
- ..\BINMODE.C
- ..\BSEARCH.C
- ..\CALLOC.C
- + ..\CFSPEED.C
-
- ..\CHDIR.C
- ..\CHMOD.C
- ..\CLOCK.C
- ***************
- *** 98,103 ****
- --- 99,105 ----
- ..\MEMCHR.C
- ..\MEMCMP.C
- ..\MKDIR.C
- + ..\MKFIFO.C
-
- ..\MKNOD.C
- ..\MKTEMP.C
- ..\NICE.C
- ***************
- *** 174,179 ****
- --- 176,187 ----
- ..\SYSCONF.C
- ..\SYSTEM.C
- ..\SYSVAR.C
- + ..\TCATTR.C
-
- + ..\TCBREAK.C
-
- + ..\TCDRAIN.C
-
- + ..\TCFLOW.C
-
- + ..\TCFLUSH.C
-
- + ..\TCPGRP.C
-
- ..\TEXTIO.C
- ..\THREAD.C
- ..\TIME.C
- *** 38.1 1993/10/21 21:49:38
- --- lattice/mcs.prj 1993/10/22 02:11:38
- ***************
- *** 15,20 ****
- --- 15,21 ----
- ..\BINMODE.C
- ..\BSEARCH.C
- ..\CALLOC.C
- + ..\CFSPEED.C
-
- ..\CHDIR.C
- ..\CHMOD.C
- ..\CLOCK.C
- ***************
- *** 98,103 ****
- --- 99,105 ----
- ..\MEMCHR.C
- ..\MEMCMP.C
- ..\MKDIR.C
- + ..\MKFIFO.C
-
- ..\MKNOD.C
- ..\MKTEMP.C
- ..\NICE.C
- ***************
- *** 174,179 ****
- --- 176,187 ----
- ..\SYSCONF.C
- ..\SYSTEM.C
- ..\SYSVAR.C
- + ..\TCATTR.C
-
- + ..\TCBREAK.C
-
- + ..\TCDRAIN.C
-
- + ..\TCFLOW.C
-
- + ..\TCFLUSH.C
-
- + ..\TCPGRP.C
-
- ..\TEXTIO.C
- ..\THREAD.C
- ..\TIME.C
- *** 38.1 1993/10/21 21:49:38
- --- lattice/mcsnb.prj 1993/10/22 02:11:40
- ***************
- *** 15,20 ****
- --- 15,21 ----
- ..\BINMODE.C
- ..\BSEARCH.C
- ..\CALLOC.C
- + ..\CFSPEED.C
-
- ..\CHDIR.C
- ..\CHMOD.C
- ..\CLOCK.C
- ***************
- *** 98,103 ****
- --- 99,105 ----
- ..\MEMCHR.C
- ..\MEMCMP.C
- ..\MKDIR.C
- + ..\MKFIFO.C
-
- ..\MKNOD.C
- ..\MKTEMP.C
- ..\NICE.C
- ***************
- *** 174,179 ****
- --- 176,187 ----
- ..\SYSCONF.C
- ..\SYSTEM.C
- ..\SYSVAR.C
- + ..\TCATTR.C
-
- + ..\TCBREAK.C
-
- + ..\TCDRAIN.C
-
- + ..\TCFLOW.C
-
- + ..\TCFLUSH.C
-
- + ..\TCPGRP.C
-
- ..\TEXTIO.C
- ..\THREAD.C
- ..\TIME.C
- *** 38.1 1993/10/21 21:49:38
- --- lattice/mcsr.prj 1993/10/22 02:11:44
- ***************
- *** 15,20 ****
- --- 15,21 ----
- ..\BINMODE.C
- ..\BSEARCH.C
- ..\CALLOC.C
- + ..\CFSPEED.C
-
- ..\CHDIR.C
- ..\CHMOD.C
- ..\CLOCK.C
- ***************
- *** 98,103 ****
- --- 99,105 ----
- ..\MEMCHR.C
- ..\MEMCMP.C
- ..\MKDIR.C
- + ..\MKFIFO.C
-
- ..\MKNOD.C
- ..\MKTEMP.C
- ..\NICE.C
- ***************
- *** 174,179 ****
- --- 176,187 ----
- ..\SYSCONF.C
- ..\SYSTEM.C
- ..\SYSVAR.C
- + ..\TCATTR.C
-
- + ..\TCBREAK.C
-
- + ..\TCDRAIN.C
-
- + ..\TCFLOW.C
-
- + ..\TCFLUSH.C
-
- + ..\TCPGRP.C
-
- ..\TEXTIO.C
- ..\THREAD.C
- ..\TIME.C
- *** 38.1 1993/10/21 21:49:38
- --- lattice/mcsrnb.prj 1993/10/22 02:11:46
- ***************
- *** 15,20 ****
- --- 15,21 ----
- ..\BINMODE.C
- ..\BSEARCH.C
- ..\CALLOC.C
- + ..\CFSPEED.C
-
- ..\CHDIR.C
- ..\CHMOD.C
- ..\CLOCK.C
- ***************
- *** 98,103 ****
- --- 99,105 ----
- ..\MEMCHR.C
- ..\MEMCMP.C
- ..\MKDIR.C
- + ..\MKFIFO.C
-
- ..\MKNOD.C
- ..\MKTEMP.C
- ..\NICE.C
- ***************
- *** 174,179 ****
- --- 176,187 ----
- ..\SYSCONF.C
- ..\SYSTEM.C
- ..\SYSVAR.C
- + ..\TCATTR.C
-
- + ..\TCBREAK.C
-
- + ..\TCDRAIN.C
-
- + ..\TCFLOW.C
-
- + ..\TCFLUSH.C
-
- + ..\TCPGRP.C
-
- ..\TEXTIO.C
- ..\THREAD.C
- ..\TIME.C
-